package com.hugboy.object1;

public class TestStudent {
    public static void main(String[] args) {
        Student s = new Student();

        System.out.println(s.name);
        System.out.println(s.age);

        s.name = "ZhangSan";
        s.age = 22;

        System.out.println(s.name);
        System.out.println(s.age);

        s.study();

        // 对象在内存中加载过程
        System.out.println(s);  // com.hugboy.object1.Student@1b6d3586 全类名(包名+类名)
    }
}
